These files are included in HTTX distribution with explicit AmiTrix permission. Redistribution or modification are forbidden. If you improve these scripts just send me the new version.
With HTTXPlugin you can use HTTX from AWeb to save (or print) HTML pages as text. This version of the interface requires AWeb II 3.0 or better and HTTX 1.5 or better. Also, the command "Delete" must be present in C: directory.
HTTXPlugin.awebrx
HTTXPluginCFG.awebrx
HTTXPluginPRT.awebrx
HTTX <-- yes, also the HTTX executable!
HTTXPlugin.doc.html
ALL to the AWeb/Plugins/HTTX directory.
ARexx menu and/or fastlinks:
add three entries, one for Save as text (HTTXPlugin.awebrx), one for Print as text (HTTXPluginPRT.awebrx) and one for the HTTX and plugin configuration (HTTXPluginCFG.awebrx).
Popup menu (frame):
add entries Save As Text and Print As Text (if required) using as command:
for save:
Plugins/HTTX/HTTXPlugin.awebrx TARGET %i
for print:
Plugins/HTTX/HTTXPluginPRT.awebrx TARGET %i
In this way it will be possible to save or print a single frame directly from the popup menu without need to select it via the plugin "Select frame(s)" function.
Equals to option LEN
Equals to option INDENT
Equals to option ANSI
Equals to option 7BIT
Off | no lines |
ASCII | lines composed by "-" |
ANSI | lines composed by underlined spaces |
Equals to option NOALIGN
Equals to option FILENOTE
Equals to option NOHEADER if set, GETNOTE if not set.
Equals to option HREF
Equals to option IMG
Equals to option BADHTML
These settings will be saved in the environment vars HTTX.prefs
(for
Save as text) and HTTXprt.prefs
(for Print as text).
Other options (like FORCE) are managed directly from the Plugin.
Refer to HTTX documentation for full explanation of options.
Example of the added text:
Header: HTTP/1.0 200 OK Server: Netscape-Enterprise/2.01 Date: Sat, 26 Apr 1997 06:38:12 GMT Accept-ranges: bytes Last-modified: Tue, 15 Apr 1997 13:57:46 GMT Content-length: 7085 Content-type: text/html Content-Type: text/html; charset=ISO-8859-1
"SYS:Utilities/"
drawer). After closing Multiview
a requester will ask if the document should be kept or deleted.
Selecting Delete the file will be erased and no conversion informations
will be showed.This option is only used when saving as text.
These settings will be saved in the environment variable HTTXPlugin.config.
HTTXPlugin works as the standard preference programs, so you can use Save or
Use option to store data. With "Save" the settings are stored in ENVARC:
and then keeped for other sessions. With "Use" only in ENV:
so they are
lost when resetting computer. Obviously first time you have to use "Save"
option.
For saving or printing a page just use the previously set menu or popup entries).
If page contains frames a requester will be popup. You can choose to save all frames to a single file or to select which ones. In this case all frames will be shown and a requester will ask to save or skip it.
When saving, after conversion of any document, if preview is active, document will be shown and then with a requester will be possible to keep or delete it.